<?php

namespace app\common\model\room\department;


use app\common\model\BaseModel;
use app\common\model\Campus;
use think\model\concern\SoftDelete;

/**
 * 科室管理模型
 * Class RoomDepartment
 * @package app\common\model\room
 */
class Department extends BaseModel
{
    use  SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $name = 'department';


    public function campus(){
        return $this->hasOne(Campus::class,'id','cid')->field('id,name');
    }


}
